package com.drink.yan.web.rest.req.qry;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.drink.yan.intf.define.YanOpSourceStatusE;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meta.act.app.tenant.page.PageReq;
import com.meta.framework.common.core.page.PageDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * java类简单作用描述
 *
 * @Title:
 * @Package: com.drink.yan.web.rest.req.qry.
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2023/11/24 17:39
 * @Version: v2.0
 */
@Data
public class PageActivityQry extends PageDomain {

    @ApiModelProperty("来源")
    private String opSource = YanOpSourceStatusE.student_mini.getCode();

    @ApiModelProperty("查询类型,热门（hot），线下讲座（offline_lecture），线下体验（offline_experience）")
    private String queryType;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "活动类型：线下讲座（offline_lecture），线下体验（offline_experience）")
    private List<String> activityTypeList;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "起始时间")
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "活动地址")
    private String activityAdress;

    @ApiModelProperty(value = "状态")
    private List<String> activityStatusList;

    private Long userId;

    private Long schoolArea;
}
